package com.pds.web.monitor.controller;

import com.pds.common.core.controller.BaseController;
import com.pds.common.core.domain.R;
import com.pds.web.monitor.domain.PdsMonitorTaskStep;
import com.pds.web.monitor.service.IPdsMonitorTaskStepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/TaskStep")
public class PdsMonitorTaskStepController extends BaseController {

    @Autowired
    private IPdsMonitorTaskStepService pdsMonitorTaskStepService;

    @PutMapping("/updateTaskStep")
    private R<Boolean> updateTaskStep(@RequestBody PdsMonitorTaskStep pdsMonitorTaskStep){
        return R.ok(pdsMonitorTaskStepService.updateTaskStep(pdsMonitorTaskStep));
    }

//    @DeleteMapping("/deleteTaskStep")
//    private R<Boolean> deleteTaskStep(@RequestParam Long id){
//        return R.ok(pdsMonitorTaskStepService.deleteTaskStep(id));
//    }

}
